home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / sys / times.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  2KB  |  69 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log:    times.h,v $
  10.  *  7-Jan-93  Mac Gillon (mgillon) at NeXT
  11.  *    Integrated POSIX support
  12.  *
  13.  * Revision 2.3  89/03/09  22:08:46  rpd
  14.  *     More cleanup.
  15.  * 
  16.  * Revision 2.2  89/02/25  17:57:12  gm0w
  17.  *     Changes for cleanup.
  18.  * 
  19.  */
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)times.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. #ifndef    _SYS_TIMES_H_
  29. #define _SYS_TIMES_H_
  30.  
  31. #if !defined(KERNEL)
  32.     #include <standards.h>
  33. #endif
  34.  
  35. #if defined(_POSIX_SOURCE)
  36.     #ifndef _CLOCK_T
  37.         #define _CLOCK_T
  38.         typedef unsigned long int clock_t;
  39.     #endif /* _CLOCK_T */
  40. #else
  41.     #import <sys/types.h>    /* for time_t */
  42. #endif    /* _POSIX_SOURCE */
  43.  
  44. /*
  45.  * Structure returned by times()
  46.  */
  47. struct tms {
  48. #if defined(_POSIX_SOURCE) && !defined(KERNEL)
  49.     clock_t    tms_utime;        /* user time */
  50.     clock_t    tms_stime;        /* system time */
  51.     clock_t    tms_cutime;        /* user time, children */
  52.     clock_t    tms_cstime;        /* system time, children */
  53. #else
  54.     time_t    tms_utime;        /* user time */
  55.     time_t    tms_stime;        /* system time */
  56.     time_t    tms_cutime;        /* user time, children */
  57.     time_t    tms_cstime;        /* system time, children */    
  58. #endif /* _POSIX_SOURCE */
  59. };
  60.  
  61. #if defined(_POSIX_SOURCE) && !defined(KERNEL)
  62.     #ifdef __STDC__
  63.         extern clock_t    times(struct tms *buffer);
  64.     #else
  65.         extern clock_t    times();
  66.     #endif /* __STDC__ */
  67. #endif /* _POSIX_SOURCE */
  68. #endif    _SYS_TIMES_H_
  69.